
import axios from 'axios';
// 这个是app的订票 还是 前台兑换 1或者2
// 导出一个promise对像
export default     function request(Id,number) {
           return   axios({
                  url: "https://m.maizuo.com/gateway?cityId=" + Id+"&ticketFlag="+number+"&k="+Math.random()*1212+1,
                  headers: {
                    "X-Host":"mall.film-ticket.cinema.list",
                    "X-Client-Info": `{"a":"3000","ch":"1002","v":"5.0.4","e":"1632883373297662708449281","bc":"110100"}`
                  },
                  method: "get"
                }).then(function (response) {
                   return response.data.data.cinemas
                })
                .catch(function (error) {
                  console.log(error);
                });
            }



